﻿
package extremefx.events {
	import extremefx.events.EventArgs;		

	/**
	 * @author Marcelo Volmaro
	 */
	public final class ProgressEventArgs extends EventArgs {
		private var _l:uint;
		private var _t:uint;

		public function ProgressEventArgs(pLoaded:uint, pTotal:uint) {
			_l = pLoaded;
			_t = pTotal;
		}
		
		public function get loaded():uint {
			return _l;
		}
		
		public function get total():uint {
			return _t;
		}
		
		public function get percent():Number {
			return _l / _t;
		}
	}
}
